package online.wftc.app.web.admin;

import online.wftc.app.utils.Result;
import online.wftc.app.vo.SysLoginUser;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/login")
public class LoginController {

    @RequestMapping(value = "/valid", method = { RequestMethod.POST })
    public Result userLogin(@RequestBody SysLoginUser loginUser){
        if(loginUser!=null){
            System.out.println(loginUser.getName());

        }
        return Result.ok();

    }

}
